import { IRouteProps } from "../components/CreateRoutes";
import DefaultHeader from "layout/defaultLayout";
import Home from "../views/Home";
import Editor from "../views/Editor";
import Login from "../views/Login";
import CMSEditor from "../views/CMSEditor";
const routes: IRouteProps[] = [
    {
        path: "/",
        component: Home,
        layout: DefaultHeader,
        layoutProps: {
            withHeader: false
        },
    },
    {
        path: "/login",
        component: Login,
    },
    {
        path: "/editor",
        component: Editor,
        auth: true
    },
    {
        path: "/cms-editor",
        component: CMSEditor,
        auth: true
    }
]

export default routes;